<?php 

namespace app\common\validate\ywUser;

use think\Validate;

class UserMaterialReceive extends Validate 
{ 
    protected $rule = [
        'room_id' => 'require',
        'uid' => 'require',
        'number' => 'require',
        'material_id' => 'require',
    ];

    protected $message = [
        'room_id.require' => '请输入房间ID',
        'uid.require' => '请输入用户ID',
        'number.require' => '请输入物资数量',
        'material_id.require' => '请输入物资ID',
    ];

    protected $scene = [
        'edit' => ['room_id','uid','number','admin_name','examine_admin_name','material_id','id'],
        'add' => ['room_id','uid','number','admin_name','examine_admin_name','material_id'],
    ];

} 
